<?php


// form_buttons
echo '<div class="form_buttons">';

// form_button_create
echo '<div class="form_button form_button_create">' . $routine->buttonSubmit('accept', __('create_action', TRUE)) . '</div>';

// form_button_create_close
echo '<div class="form_button form_button_create_close">' . $routine->buttonSubmitClose(array('accept', 'arrow_up'), __('create_close_action', TRUE)) . '</div>';
if (isset($has_rubric) && $has_rubric) {
	// form_button_create_close
	echo '<div class="form_button form_button_create_close_2">' . $routine->buttonSubmitClose2(array('accept', 'arrow_up', 'find'), __('create_close_2_action', TRUE)) . '</div>';
}

// form_button_index
if (isset($is_tree, $parent_id) && $is_tree) {
	$index_url = array('action' => 'index', $parent_id, 'autoPage' => TRUE);
	echo '<div class="form_button form_button_index">' . $routine->button('arrow_up', FALSE, $index_url, array('title' => __('index_action', TRUE))) . '</div>';
} elseif (isset($has_rubric, $rubric_id) && $has_rubric) {
	$index_url = array('action' => 'index', $rubric_id, 'autoPage' => TRUE);
	echo '<div class="form_button form_button_index">' . $routine->button('arrow_up', FALSE, $index_url, array('title' => __('index_action', TRUE))) . '</div>';
	$index_url = array('action' => 'index', 'autoPage' => TRUE);
	echo '<div class="form_button form_button_index">' . $routine->button(array('arrow_up', 'find'), FALSE, $index_url, array('title' => __('all_index_action', TRUE))) . '</div>';
} elseif (isset($has_rubric) && $has_rubric && !isset($rubric_id)) {
	$index_url = array('action' => 'index', 'autoPage' => TRUE);
	echo '<div class="form_button form_button_index">' . $routine->button(array('arrow_up', 'find'), FALSE, $index_url, array('title' => __('all_index_action', TRUE))) . '</div>';
} else {
	$index_url = array('action' => 'index', 'autoPage' => TRUE);
	echo '<div class="form_button form_button_index">' . $routine->button('arrow_up', FALSE, $index_url, array('title' => __('index_action', TRUE))) . '</div>';
}

echo '</div>'; // end of form_buttons


?>